package com.waypolice.mapper;

import com.waypolice.pojo.UpmsArchivesTypes;
import java.util.List;

import com.waypolice.pojo.UpmsArchivesTypesExample;
import org.apache.ibatis.annotations.Param;

public interface UpmsArchivesTypesMapper {
    int countByExample(UpmsArchivesTypesExample example);

    int deleteByExample(UpmsArchivesTypesExample example);

    int deleteByPrimaryKey(Integer archivesId);

    int insert(UpmsArchivesTypes record);

    int insertSelective(UpmsArchivesTypes record);

    List<UpmsArchivesTypes> selectByExample(UpmsArchivesTypesExample example);

    UpmsArchivesTypes selectByPrimaryKey(Integer archivesId);

    int updateByExampleSelective(@Param("record") UpmsArchivesTypes record, @Param("example") UpmsArchivesTypesExample example);

    int updateByExample(@Param("record") UpmsArchivesTypes record, @Param("example") UpmsArchivesTypesExample example);

    int updateByPrimaryKeySelective(UpmsArchivesTypes record);

    int updateByPrimaryKey(UpmsArchivesTypes record);
    /*
        递归查出根节点及所有叶节点
    */
    List<UpmsArchivesTypes> selectByArchivesId(Integer archivesId);
}